package com.vdong.common.oauth.repository.dao;

import com.vdong.common.oauth.entity.mo.WechatConfig;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
public interface WechatConfigMapper {

    int deleteByPrimaryKey(Long id);

    int insert(WechatConfig record);

    WechatConfig selectByPrimaryKey(Long id);

    List<WechatConfig> selectAll();

    int updateByPrimaryKey(WechatConfig record);

    WechatConfig queryByAppId(@Param("appId") String appId);

    WechatConfig quertByStoreId(@Param("storeId") Long storeId);

    /**
     * 更新证书
     */
    void updatePayCert(@Param("id") Long id, @Param("payCert") byte[] payCert,@Param("certName")String certName);
}